package com.mall.order.server.service;

import com.mall.common.core.domain.Result;
import com.mall.order.common.dto.OrderRequest;
import com.mall.order.common.dto.Sku;

import java.util.List;

public interface OrderService {

    //用户下单操作
    Result planOrder(OrderRequest omsOrder);

    //下单校验库存操作
    Result reduceStocks(List<Sku> skuList);

    //轮询查询redis检查订单状态
    Result PollingFindRedis(String orderSn);

}
